//
//  KaiDianSUSViewController.m
//  CarTown
//
//  Created by xionghao on 15/8/15.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import "KaiDianSUSViewController.h"
#import "RootTabViewController.h"
@interface KaiDianSUSViewController ()

@end

@implementation KaiDianSUSViewController
+(instancetype)viewcontroller{
    KaiDianSUSViewController *kaisus=[XHMianStory instantiateViewControllerWithIdentifier:@"kaidiansus"];
    
    return kaisus;
}
-(UIStatusBarStyle)preferredStatusBarStyle{
    return UIStatusBarStyleLightContent;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"完成";
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)backindex:(id)sender {
    if (self.navigationController.navigationController==nil) {
        [self pushToTab];
    }else{
        [self.navigationController popToRootViewControllerAnimated:YES];
    }
}
-(void)pushToTab{
    RootTabViewController *tab=[XHMianStory instantiateViewControllerWithIdentifier:@"tabroot"];
    
    
    [self.navigationController pushViewController:tab animated:YES];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
